<?php
declare(strict_types=1);

namespace App\Resource\Activity\LaborDay2023;


use Illuminate\Http\Resources\Json\JsonResource;

class TaskResource extends JsonResource
{
    public function toArray($request): array
    {
        return [
            "id" => $this->id,
            "name" => $this->name,
            "type" => $this->type,
            "count" =>  $this->count,
            "desc" => $this->desc,
            "is_finished" => (int)$this->is_finished,
        ];
    }
}